package com.wangxinenpu.springbootdemo.dataobject.vo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class UserVo {

	@ApiModelProperty ( "id" )
	private String id;

	@ApiModelProperty ( "用户名" )
	@NotBlank ( message = "用户名不能为空" )
	private String userName;

	@ApiModelProperty ( "用户编号" )
	@NotBlank ( message = "用户编号不能为空" )
	private String userNo;

	@ApiModelProperty ( "组织id" )
	@NotBlank ( message = "组织不能为空" )
	private String orgId;

	@ApiModelProperty ( "组织名称" )
	private String orgName;

	@ApiModelProperty ( "用户角色集合id" )
	@NotBlank ( message = "用户角色不能为空" )
	private List < String > roleIds;

	@ApiModelProperty ( "用户角色集合名字" )
	private List < String > roleNames;

}
